package com.shujia.java.day10.demo1;

public class Cat extends Pet{
    private String sex;

    public Cat() {
    }

    public Cat(String name, int health, String sex) {
        super(name, health);
        this.sex = sex;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    @Override
    public void eat() {
        System.out.println("猫吃鱼");
    }

    @Override
    public void play() {

    }
}
